﻿<Window x:Class="LEDManager.LEDConsole"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:my="clr-namespace:LEDManager"
        xmlns:db="clr-namespace:LEDDataBase;assembly=LEDDataBase"
        Visibility="Hidden"
        Title="LEDConsole" Height="1" Width="1">
    <Window.Resources>
        <db:LEDDataSet  x:Key="lEDDataSet" />
        <CollectionViewSource  x:Key="vwMASTER" Source="{Binding Path=MASTER,Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwLEDSYSTEM" Source="{Binding Path=LEDSYSTEM, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwLEDLIST" Source="{Binding Path=LEDLIST, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwCTEXT" Source="{Binding Path=CTEXT, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwCPICTURE" Source="{Binding Path=CPICTURE, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwCMOVIE" Source="{Binding Path=CMOVIE, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwCCOUNT" Source="{Binding Path=CCOUNT, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwPROGRAM" Source="{Binding Path=PROGRAM, Source={StaticResource lEDDataSet} }" />
        <CollectionViewSource x:Key="vwLEAF" Source="{Binding Path=LEAF, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwLEAFDETAIL" Source="{Binding Path=LEAFDETAIL, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwFONTTABLE" Source="{Binding Path=FONTTABLE, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwFORMATDEF" Source="{Binding Path=FORMATDEF, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwEFFECTDEF" Source="{Binding Path=EFFECTDEF, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwSPEEDDEF" Source="{Binding Path=SPEEDDEF, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwLOCATION" Source="{Binding Path=LOCATION, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwLAYOUT" Source="{Binding Path=LAYOUT, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwLAYOUTMASTER" Source="{Binding Path=LAYOUTMASTER, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwCONTENTTYPE" Source="{Binding Path=CONTENTTYPE, Source={StaticResource lEDDataSet}}" />
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="500"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3">
            <TabControl  Name="tabLED"  HorizontalAlignment="Stretch" Margin="5,5,0,0"  VerticalAlignment="Stretch" >
                <TabItem Header="总控" Name="tab000">
                    <WrapPanel>
                        <Button Name="btnLED"></Button>
                    </WrapPanel>
                </TabItem>
                <TabItem Header="LED001" Name="tab0001"> 
                    <!--my:LEDUnit x:Name="ledUnit001" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></my:LEDUnit-->
                </TabItem>
            </TabControl>
        </StackPanel>        
    </Grid>
</Window>
